<?php

/**
 * Subclass for performing query and update operations on the 'invoice' table.
 *
 * 
 *
 * @package lib.model
 */ 
class InvoicePeer extends BaseInvoicePeer
{
  public static function getInvoiceId($invoice_iden){
    $invoice = self::retrieveByPk($invoice_iden);
    if ($invoice)
      return $invoice->getInvoiceNumber();
    else
      return $invoice_iden;
  }
}
